import { createStore } from 'vuex'

export default createStore({
  state: {
    httpLoading: false, // 头部显示网络加载进度
    headerContent: '' // 头部提示
  },
  getters: {},
  mutations: {
    showHttpLoading(state) {
      // 显示http进度条
      state.httpLoading = true
    },
    clearHttpLoading(state) {
      // 关闭http进度条
      state.httpLoading = false
    }
  },
  actions: {},
  modules: {}
})
